package org.example.mad.service;

import org.example.mad.dao.StudentDao;
import org.example.mad.entity.Student;

import java.util.List;

public class StudentService {
    private StudentDao studentDAO = new StudentDao();
    public List<Student> getStudentsByPage(int pageNum) {
        return studentDAO.getStudentsByPage(pageNum);
    }
    public int getTotalCount() {
        return studentDAO.getTotalCount();
    }

}
